﻿<UserControl x:Class="Flux_Balance_Analysis.ConstraintsManager"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Loaded="UserControl_Loaded">
    <DockPanel>
        <GroupBox Header="Filtro" Name="grpbFilter" DockPanel.Dock="Top" Height="50">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="32" />
                </Grid.ColumnDefinitions>
                <TextBox Name="txtFilter" Margin="3" TextChanged="txtFilter_TextChanged"/>
                <Button Name="cmdFilter" Margin="3" Grid.Column="1" Background="Transparent">
                    <Image Source="Images\search.png" />
                </Button>
            </Grid>
        </GroupBox>
        <GroupBox Header="Vincoli" >
            <ScrollViewer>
                <StackPanel Name="spConstraints" ScrollViewer.VerticalScrollBarVisibility="Auto">
                    <Button Name="cmdAddConstraint" Width="100" Height="30" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3" Click="cmdAddConstraint_Click" >
                        <StackPanel Orientation="Horizontal">
                            <Image Source="Images\add.png" Width="16" Height="16" Margin="3"/>
                            <TextBlock Text="Aggiungi" Margin="3"/>
                        </StackPanel>
                    </Button>
                </StackPanel>
            </ScrollViewer>
        </GroupBox>
    </DockPanel>
</UserControl>
